﻿using System;
using System.Data;
using System.Configuration;
using System.Collections.Generic;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Web.Script;
using System.Web.Script.Serialization;
using System.Web.Script.Services;
using AjaxControlToolkit;
public partial class AutoCmplt : System.Web.UI.UserControl
{    
    protected void Page_Load(object sender, EventArgs e)
    {
        //this.AutoCompleteTextBox.Text = LIViewStyle + Width.ToString() + ServiceMethod;
        this.AutoCompleteExtender1.AcListItemStyle = LIViewStyle;
        this.AutoCompleteTextBox.Width = Width;
        this.AutoCompleteExtender1.ServiceMethod = ServiceMethod;
    }
    private int width = 300;
    public int Width
    {
        get { return width; }
        set { width = value; }
    }

    private string liviewstyle = "BiEdge";//<%--BiLine--%>
    public string LIViewStyle
    {
        get { return liviewstyle; }
        set { liviewstyle = value; }
    }

    private string servicemethod = "GetTopSchoolList"; //<%--GetTopTitleList--%> <%--GetTopCompanyList--%>
    public string ServiceMethod
    {
      get { return servicemethod; }
      set { servicemethod = value; }
    }
}